package com.hk.huakangcompany.service.impl;

import com.hk.huakangcompany.mapper.WxPermissionMapper;
import com.hk.huakangcompany.model.WxPermission;
import com.hk.huakangcompany.service.WxPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @Author: aerfazhe
 * @Date: 2021/7/26 10:44
 * @Statement: 权限服务实现类
 */
@Service
public class WxPermissionServiceImpl implements WxPermissionService {

    @Autowired
    private WxPermissionMapper permissionMapper;


    @Override
    public List<WxPermission> findAll(Integer page, Integer limit, WxPermission wxPermission) {
        List<WxPermission> permissionList = permissionMapper.findAll(wxPermission);
        return permissionList;
    }

    @Override
    public int count(Integer page, Integer limit, WxPermission wxPermission) {
        int count = permissionMapper.count(wxPermission);
        return count;
    }

    @Override
    public WxPermission findById(Integer id) {
        return null;
    }

    @Override
    public List<WxPermission> findByIds(Set<Integer> permissionIds) {
        List<WxPermission> permissionList =  permissionMapper.findByIds(permissionIds);
        return permissionList;
    }

    @Override
    public int save(WxPermission wxPermission) {
        return 0;
    }

    @Override
    public int update(WxPermission wxPermission) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

}
